package com.du.exception;

import com.du.enums.ExceptionEnum;
import lombok.Getter;

@Getter
public class SsmException extends RuntimeException {
//    错误代码
    private Integer code;

    public SsmException(Integer code,String message ) {
        super(message);
        this.code = code;
    }
    public SsmException(ExceptionEnum exceptionEnum) {
        super(exceptionEnum.getMsg());
        this.code = exceptionEnum.getCode();
    }
}
